<?php defined('SYSPATH') or die('No direct access allowed.');

class Model_Fenxiao_Group extends ORM {
    public static function get_name($groupid)
    {
        if(empty($groupid))
        {
            return '默认分组';
        }
        $name = DB::select('title')->from('fenxiao_group')->where('id','=',$groupid)->execute()->get('title');
        return $name;
    }
}